package com.qf.day03;

public class sxhs {
    public static void main(String[] args) {
        int g;
        int s;
        int b;
        int sum = 0;
        for (int i = 100; i < 999; i++) {
            g=i%10;
            s=i/10%10;
            b = i/100;
            sum = g*g*g+s*s*s+b*b*b;

            if(sum==i){
                System.out.println(i);
            }
        }
    }
}
